package com.hehui.module.goods.entity;

import java.util.ArrayList;
import java.util.List;

public class GoodsLadderPriceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsLadderPriceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGlLadderidIsNull() {
            addCriterion("gl_ladderId is null");
            return (Criteria) this;
        }

        public Criteria andGlLadderidIsNotNull() {
            addCriterion("gl_ladderId is not null");
            return (Criteria) this;
        }

        public Criteria andGlLadderidEqualTo(Long value) {
            addCriterion("gl_ladderId =", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidNotEqualTo(Long value) {
            addCriterion("gl_ladderId <>", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidGreaterThan(Long value) {
            addCriterion("gl_ladderId >", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidGreaterThanOrEqualTo(Long value) {
            addCriterion("gl_ladderId >=", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidLessThan(Long value) {
            addCriterion("gl_ladderId <", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidLessThanOrEqualTo(Long value) {
            addCriterion("gl_ladderId <=", value, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidIn(List<Long> values) {
            addCriterion("gl_ladderId in", values, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidNotIn(List<Long> values) {
            addCriterion("gl_ladderId not in", values, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidBetween(Long value1, Long value2) {
            addCriterion("gl_ladderId between", value1, value2, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlLadderidNotBetween(Long value1, Long value2) {
            addCriterion("gl_ladderId not between", value1, value2, "glLadderid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidIsNull() {
            addCriterion("gl_goodsId is null");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidIsNotNull() {
            addCriterion("gl_goodsId is not null");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidEqualTo(Long value) {
            addCriterion("gl_goodsId =", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidNotEqualTo(Long value) {
            addCriterion("gl_goodsId <>", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidGreaterThan(Long value) {
            addCriterion("gl_goodsId >", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidGreaterThanOrEqualTo(Long value) {
            addCriterion("gl_goodsId >=", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidLessThan(Long value) {
            addCriterion("gl_goodsId <", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidLessThanOrEqualTo(Long value) {
            addCriterion("gl_goodsId <=", value, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidIn(List<Long> values) {
            addCriterion("gl_goodsId in", values, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidNotIn(List<Long> values) {
            addCriterion("gl_goodsId not in", values, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidBetween(Long value1, Long value2) {
            addCriterion("gl_goodsId between", value1, value2, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlGoodsidNotBetween(Long value1, Long value2) {
            addCriterion("gl_goodsId not between", value1, value2, "glGoodsid");
            return (Criteria) this;
        }

        public Criteria andGlTotalIsNull() {
            addCriterion("gl_total is null");
            return (Criteria) this;
        }

        public Criteria andGlTotalIsNotNull() {
            addCriterion("gl_total is not null");
            return (Criteria) this;
        }

        public Criteria andGlTotalEqualTo(Long value) {
            addCriterion("gl_total =", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalNotEqualTo(Long value) {
            addCriterion("gl_total <>", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalGreaterThan(Long value) {
            addCriterion("gl_total >", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalGreaterThanOrEqualTo(Long value) {
            addCriterion("gl_total >=", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalLessThan(Long value) {
            addCriterion("gl_total <", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalLessThanOrEqualTo(Long value) {
            addCriterion("gl_total <=", value, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalIn(List<Long> values) {
            addCriterion("gl_total in", values, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalNotIn(List<Long> values) {
            addCriterion("gl_total not in", values, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalBetween(Long value1, Long value2) {
            addCriterion("gl_total between", value1, value2, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlTotalNotBetween(Long value1, Long value2) {
            addCriterion("gl_total not between", value1, value2, "glTotal");
            return (Criteria) this;
        }

        public Criteria andGlPricedIsNull() {
            addCriterion("gl_priced is null");
            return (Criteria) this;
        }

        public Criteria andGlPricedIsNotNull() {
            addCriterion("gl_priced is not null");
            return (Criteria) this;
        }

        public Criteria andGlPricedEqualTo(Double value) {
            addCriterion("gl_priced =", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedNotEqualTo(Double value) {
            addCriterion("gl_priced <>", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedGreaterThan(Double value) {
            addCriterion("gl_priced >", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedGreaterThanOrEqualTo(Double value) {
            addCriterion("gl_priced >=", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedLessThan(Double value) {
            addCriterion("gl_priced <", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedLessThanOrEqualTo(Double value) {
            addCriterion("gl_priced <=", value, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedIn(List<Double> values) {
            addCriterion("gl_priced in", values, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedNotIn(List<Double> values) {
            addCriterion("gl_priced not in", values, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedBetween(Double value1, Double value2) {
            addCriterion("gl_priced between", value1, value2, "glPriced");
            return (Criteria) this;
        }

        public Criteria andGlPricedNotBetween(Double value1, Double value2) {
            addCriterion("gl_priced not between", value1, value2, "glPriced");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}